<!--

    Copyright (c) 2010-2025 Eclipse Dirigible contributors

    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v2.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v20.html

    SPDX-FileCopyrightText: Eclipse Dirigible contributors
    SPDX-License-Identifier: EPL-2.0

-->
<!DOCTYPE HTML>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" ng-app="errorPage" ng-controller="ErrorPageController">

    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" href="data:;base64,iVBORw0KGgo=" brand-icon />
        <title config-title></title>
        <script>
            const viewData = {
                label: 'Page Not Found',
                autoFocusTab: false
            };
        </script>
        <script type="text/javascript" src="/services/js/platform-core/services/loader.js?id=view-js"></script>
        <link type="text/css" rel="stylesheet" href="/services/js/platform-core/services/loader.js?id=view-css" />
    </head>

    <body class="bk-center" bk-scrollbar>
        <bk-message-page glyph="sap-icon--documents">
            <bk-message-page-title>Page Not Found</bk-message-page-title>
            <bk-message-page-subtitle class="bk-vbox bk-box--gap-m">
                <b>It looks like you've reached a URL that doesn't exist.</b>
                The page you are looking for is no longer here, or never existed in the first place.
                <i>You can go to the <b>previous page</b>, or start over from the <b>home page</b>.</i>
            </bk-message-page-subtitle>
            <bk-message-page-actions>
                <bk-button compact="true" label="Go Back" state="emphasized" ng-click="goBack()"></bk-button>
                <bk-button compact="true" label="Take Me Home" ng-click="goHome()" ng-click="goHome()"></bk-button>
            </bk-message-page-actions>
        </bk-message-page>

        <script>
            const errorPage = angular.module('errorPage', ['blimpKit', 'platformView']);
            errorPage.controller('ErrorPageController', ($scope) => {
                $scope.goBack = () => history.back();
                $scope.goHome = () => window.location = "/home";
            });
        </script>
        <theme></theme>
    </body>

</html>
